welo git mirrors
Commit 5e21bdd233787742aa3120ed4e2baeebd6f8672d
Parents : c7e5f46
Author : Mark Qvist <mark@unsigned.io>
Date : 2021-09-16T20:40:37+02:00
Improved link teardown handling.
Changes
Diff
diff --git a/RNS/Link.py b/RNS/Link.py
index 4e56d8206..ed1261fbc 100644
--- a/RNS/Link.py
+++ b/RNS/Link.py
@@ -419,6 +419,11 @@ class Link:
self.shared_key = None
self.derived_key = None
+ if self.destination != None:
+ if self.destination.direction == RNS.Destination.IN:
+ if self in self.destination.links:
+ self.destination.links.remove(self)
+
if self.callbacks.link_closed != None:
self.callbacks.link_closed(self)
Served by rngit 1.5.1 - Generated in 0.07s